
package com.dhcc.bpm.modules.content.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName News
 * @Description  News实体类
 * @Author lijiacheng
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_news")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "News对象", description = "新闻动态表")
public class News extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 新闻动态名称
	*/
		@ApiModelProperty(value = "新闻动态名称")
		private String newsName;
	/**
	* 新闻动态编号
	*/
		@ApiModelProperty(value = "新闻动态编号")
		private String newsCode;
	/**
	* 新闻动态内容
	*/
		@ApiModelProperty(value = "新闻动态内容")
		private String newsContent;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;
	/**
	 * 新闻头图
	 */
	@JsonSerialize(
			using = ToStringSerializer.class,
			nullsUsing = NullSerializer.class
	)
	@ApiModelProperty(value = "新闻头图")
	private Long picturePath;

	@ApiModelProperty(value = "排序")
	private Integer sort;

}
